<%= header %>
<script>
// fake a non-NavigationTiming browser even if it is one
BOOMR_test.removeNavigationTimingSupport();
window.lastNav = +(new Date()) - 10000;
BOOMR_test.setCookie({
	si: "abc123-1234",
	sl: (1).toString(36),
	ss: (lastNav).toString(36),
	tt: (1000).toString(36),
	bcn: "/beacon",
	dm: document.domain,
	ld: (1000).toString(36),
	cl: (2000).toString(36),
	nu: "test.html",
	z: 1
});

try {
	var clickEvent = new MouseEvent("mouseup", {
		"view": window,
		"bubbles": true,
		"cancelable": true,
		"clientX": 100,
		"clientY": 100
	});
}
catch (e) {
	window.cannotCreateMouseEvent = true;
}
</script>

<%= boomerangScript %>
<script src="00-hash-string-nu-cookie-param.js" type="text/javascript"></script>
<a id="test-click-link" href="https://www.example.com/test-click.html">Test Click</a>
<script>
BOOMR.session.domain = document.domain;
BOOMR_test.init({
	testAfterOnBeacon: 2,
	afterFirstBeacon: function() {
        // This triggers nu of RT cookie to be updated
		document.getElementById("test-click-link").dispatchEvent(clickEvent);
        // We trigger second beacon to be sent
		BOOMR.plugins.RT.done();
	}
});
</script>
<%= footer %>